//block name translation
Blockly.JOYROBOT_SETUP = "JoyRobot Initialization";
Blockly.JOYROBOT_SPEED = "Speed";
Blockly.JOYROBOT_MOVE = "JoyRobot";
Blockly.JOYROBOT_MODE = "Control mode";
Blockly.JOYROBOT_SERVO = "Set Servo";
Blockly.JOYROBOT_SERVOPIN = "Servo pin";
Blockly.JOYROBOT_SERVODEGREE = "Correction angle";
Blockly.JOYROBOT_MOTORPIN = "Set motor pin";
Blockly.JOYROBOT_LEFTNEGATIVEPIN = "Left negative pole";
Blockly.JOYROBOT_LEFTPOSITIVEPIN = "Left positive pole";
Blockly.JOYROBOT_RIGHTNEGATIVEPIN = "Right negative pole";
Blockly.JOYROBOT_RIGHTPOSITIVEPIN = "Right positive pole";
Blockly.JOYROBOT_TURN = "Turn a corner";
Blockly.JOYROBOT_TURNANGLE = "Angle";
Blockly.JOYROBOT_SPEEDUP = "Speedup";
Blockly.JOYROBOT_SPEEDDOWN = "Speeddown";
Blockly.JOYROBOT_GETCURRENTSPEED = "Get the current speed";
Blockly.JOYROBOT_IRRECEIVEPIN = "infrared reception Initialization";
Blockly.JOYROBOT_IRKEYPRESSED = "Infrared remote control button pressed"
Blockly.JOYROBOT_IRKEYPRESS = "Infrared remote key pressed";
Blockly.JOYROBOT_ULTRASONICPIN = "Set ultrasonic and RGB pin";
Blockly.JOYROBOT_SING = "SING pin";
Blockly.JOYROBOT_RGB = "RGB pin";
Blockly.JOYROBOT_SETRGB = "RGB";
Blockly.JOYROBOT_RGBCOLOUR = "colour";
Blockly.JOYROBOT_READULTRASONICDISTANCE = "Read ultrasonic distance";
Blockly.JOYROBOT_IRAVOIDANCEPIN = "Set infrared avoidance pin";
Blockly.JOYROBOT_PHOTOSENSITIVEPIN = "Set photosensitive pin";
Blockly.JOYROBOT_GETPHOTOSENSITIVE = "Light attenuation value";
Blockly.JOYROBOT_LEFTPIN = "Left pin";
Blockly.JOYROBOT_RIGHTPIN = "Right pin";
Blockly.JOYROBOT_READIRAVOIDANCEDISTANCE = "Read infrared avoidance distance";
Blockly.JOYROBOT_PS2PIN = "Set PS2 pin";
Blockly.JOYROBOT_CLKPIN = "CLK pin";
Blockly.JOYROBOT_CMDPIN = "CMD pin";
Blockly.JOYROBOT_ATTPIN = "ATT pin";
Blockly.JOYROBOT_DATPIN = "DAT pin";
Blockly.JOYROBOT_VARPS2VIBRATE = "Define PS2 Rocker Vibration Value";
Blockly.JOYROBOT_SETPS2VIBRATE = "Set PS2 Rocker Vibration Value";
Blockly.JOYROBOT_PS2KEYPRESSED = "PS2 key pressed";
Blockly.JOYROBOT_WHICHPS2KEYPRESSED = "PS2 press";
Blockly.JOYROBOT_IRTRACKINGPIN = "Set infrared tracking pin";
Blockly.JOYROBOT_IRTRACKINGLEFTPIN = "Left";
Blockly.JOYROBOT_IRTRACKINGMIDPIN = "Mid";
Blockly.JOYROBOT_IRTRACKINGRIGHTPIN = "Right";
Blockly.JOYROBOT_READTRACKINGVALUE = "Read infrared tracking status";
Blockly.JOYROBOT_SETBYTEOLD = "Define a variable that holds the last tracking state";
Blockly.JOYROBOT_RECENTTRACKINGVALUE = "Current tracking status";
Blockly.JOYROBOT_CLEANLASTTRACKINGVALUE = "Clear up the last tracking status";
Blockly.JOYROBOT_RECENTTRACKINGVALUEISNOTWHITE = "Current tracking status is not white";
Blockly.JOYROBOT_RESETLASTTRACKINGVALUE = "Reset the last tracking status";
Blockly.JOYROBOT_RECEIVEBLUETOOTHDATA = "Receiving Bluetooth Data";
Blockly.JOYROBOT_RECEIVEDBLUETOOTHDATA = "Received Bluetooth data";
Blockly.JOYROBOT_BLUETOOTHKEYPRESSED = "Bluetooth control key press";

Blockly.HB_SetSpeedOrDegree="Set up";
Blockly.HB_InitNrf="Initialization nRF24L01+";
Blockly.HB_ReceivedNrf24L01Data="Whether to receive data nRF24L01+";
Blockly.HB_ReadNrf24L01Data="Read nRF24L01+ Wireless controller data";
Blockly.HB_ParsingData="Parsing wireless data";
Blockly.HB_ReadDataTyps="Determine wireless data type";
Blockly.HB_ReadDegreeData="Reading angle";
Blockly.HB_ReadSpeedData="Reading speed";
Blockly.HB_JudgeButton="Judgment button";

//parameter translation
Blockly.JOYROBOT_DIRECTION_FORWARD = "forward";
Blockly.JOYROBOT_DIRECTION_BACK = "back";
Blockly.JOYROBOT_DIRECTION_STOP = "stop";
Blockly.JOYROBOT_DIRECTION_TURNLEFT = "turnleft";
Blockly.JOYROBOT_DIRECTION_TURNRIGHT = "turnright";
Blockly.JOYROBOT_CONTROLMODE_BLUETOOTH = "bluetooth control";
Blockly.JOYROBOT_CONTROLMODE_REMOTE = "infrared remote";
Blockly.JOYROBOT_CONTROLMODE_IRTRACKING = "infrared tracking";
Blockly.JOYROBOT_CONTROLMODE_IRAVOIDANCE = "infrared avoidance";
Blockly.JOYROBOT_CONTROLMODE_LIGHTFIND = "light seeking";
Blockly.JOYROBOT_CONTROLMODE_ULTRASONICAVOIDANCE = "ultrasonic avoidance";
Blockly.JOYROBOT_CONTROLMODE_PS2 = "PS2 control";
Blockly.JOYROBOT_CONTROLMODE_NRF24L01 = "NRF24L01 control";
Blockly.JOYROBOT_CONTROLMODE_ULTRASONICIRAVOIDANCE = "ultrasonic infrared avoidance";
Blockly.JOYROBOT_CONTROLMODE_RGB = "RGB";
Blockly.JOYROBOT_ULTRASONICDIRECTION_FRONT = "ahead distance";
Blockly.JOYROBOT_ULTRASONICDIRECTION_LEFT = "left distance";
Blockly.JOYROBOT_ULTRASONICDIRECTION_RIGHT = "righ tdistance";
Blockly.JOYROBOT_IRAVOIDANCEDIRECTION_LEFT = "left";
Blockly.JOYROBOT_IRAVOIDANCEDIRECTION_RIGHT = "right";
Blockly.JOYROBOT_PS2KEY_UP = "up";
Blockly.JOYROBOT_PS2KEY_DOWN = "down";
Blockly.JOYROBOT_PS2KEY_LEFT = "left";
Blockly.JOYROBOT_PS2KEY_RIGHT = "right";
Blockly.JOYROBOT_TRACKINGVALUE_BLACK = "black";
Blockly.JOYROBOT_TRACKINGVALUE_WHITE = "white";
Blockly.JOYROBOT_TRACKINGVALUE_CENTER = "middle";
Blockly.JOYROBOT_TRACKINGVALUE_RIGHT1 = "right1";
Blockly.JOYROBOT_TRACKINGVALUE_RIGHT2 = "right2";
Blockly.JOYROBOT_TRACKINGVALUE_LEFT1 = "left1";
Blockly.JOYROBOT_TRACKINGVALUE_LEFT2 = "left2";
Blockly.JOYROBOT_BLUETOOTHKEY_UP = "up";
Blockly.JOYROBOT_BLUETOOTHKEY_DOWN = "down";
Blockly.JOYROBOT_BLUETOOTHKEY_LEFT = "left";
Blockly.JOYROBOT_BLUETOOTHKEY_RIGHT = "right";
Blockly.JOYROBOT_BLUETOOTHKEY_SPEEDUP = "speedup";
Blockly.JOYROBOT_BLUETOOTHKEY_SPEEDDOWN = "speeddown";

Blockly.JOYROBOT_IRKEY_UP = "up";
Blockly.JOYROBOT_IRKEY_DOWN = "down";
Blockly.JOYROBOT_IRKEY_LEFT = "left";
Blockly.JOYROBOT_IRKEY_RIGHT = "right";

Blockly.JOYROBOT_PHOTOSENSITIVE_LEFT = "left";
Blockly.JOYROBOT_PHOTOSENSITIVE_RIGHT = "right";

Blockly.JOYROBOT_RGBNUMBER_ALL = "all";
Blockly.JOYROBOT_RGBNUMBER_LEFT = "left";
Blockly.JOYROBOT_RGBNUMBER_RIGHT = "right";
Blockly.JOYROBOT_RGBCOLOR_RED = "red";
Blockly.JOYROBOT_RGBCOLOR_GREEN = "green";
Blockly.JOYROBOT_RGBCOLOR_BLUE = "blue";
Blockly.JOYROBOT_RGBCOLOR_YELLOW = "yellow";
Blockly.JOYROBOT_RGBCOLOR_PURPLE = "purple";
Blockly.JOYROBOT_RGBCOLOR_ORANGE = "orange";
Blockly.JOYROBOT_RGBCOLOR_INDIGO = "indigo";
Blockly.JOYROBOT_RGBCOLOR_VIOLET = "violet";
Blockly.JOYROBOT_SETRGBSTYLE = "style";
Blockly.JOYROBOT_RGBSTYLE_NONE = "none";
Blockly.JOYROBOT_RGBSTYLE_BREATHE = "breathing";
Blockly.JOYROBOT_RGBSTYLE_ROTATE = "rotate";
Blockly.JOYROBOT_RGBSTYLE_FLASH = "flash";

Blockly.JOYROBOT_RGBCOLOR_WHITE = "white";
Blockly.JOYROBOT_RGBCOLOR_OFF = "off";

Blockly.JOYROBOT_FIRE="Flame sensor initialization";
Blockly.JOYROBOT_FIRELEFT="Left pin";
Blockly.JOYROBOT_FIRERIGHT="Right pin";
Blockly.JOYROBOT_SOUND="Sound sensor initialization pin";
Blockly.JOYROBOT_FUN="Fan initialization pin";
Blockly.JOYROBOT_FIREFUNLEFT="left";
Blockly.JOYROBOT_FIREFUNRIGHT="right";
Blockly.JOYROBOT_HAVEFIRE="Fire source";
Blockly.JOYROBOT_HAVENOFIRE="No fire source";
Blockly.JOYROBOT_OPENFUN="Fan";
Blockly.JOYROBOT_OPENFUNS="turn on";
Blockly.JOYROBOT_CLOSEFUNS="turn off";